Window.MenuBar Property
Syntax
MenuBar as MenuItem
The menubar that is associated with the window. This is the menubar that is added to the project by default or is assigned using the Application class's MenuBar property.
When the window is active, this menubar is displayed.
If no menubar is assigned to the window, the application's global menubar is used. To hide the menubar, set MenuBar to Nil.
On Windows and Linux, a window can have a menubar just below its Title bar. It uses the menubar assigned to the window or the application's menubar if no menubar is assigned to the window. If it is a Windows MDI application, the MDI window uses the Application's menubar. Individual document windows cannot have a menubar, but this is due to a limitation built into Windows. However, floating windows can have a menubar, and those windows will display the menubar you specify for them.